
#include "menu\GameMapSelect.h"
#include "Game.h"
#include "SGD Wrappers\SGD_InputManager.h"
#include "menu\GameState.h"
#include "menu\MainMenuState.h"
#include "menu\GameMode.h"

CMiniGameSelect* CMiniGameSelect::GetInstance(void)
{
	static CMiniGameSelect s_Instance;
	return &s_Instance;
}

void CMiniGameSelect::Enter(void)
{}

void CMiniGameSelect::Exit(void)
{}

bool CMiniGameSelect::Input(void)
{
	SGD::InputManager* pInput = SGD::InputManager::GetInstance();

	if (pInput->IsKeyPressed(SGD::Key::Escape) == true || pInput->IsButtonPressed(0, 1) == true)
	{
		Game::GetInstance()->ChangeState(CGameMode::GetInstance());
		return true;
	}
	return true;
}

void CMiniGameSelect::Update(float elapsedTime)
{}

void CMiniGameSelect::Render(void)
{
	const Font* pFont = Game::GetInstance()->GetFont();

	pFont->Draw("Practice Mode", { 1, 1 }, 1, { 255, 255, 255 });
}
